<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="./layui/css/layui.css">
    <style>
        form {
            margin-top: 50%;
            margin-left: 50px;
            margin-right: 50px;
            transform: translateY(-50%);
        }
    </style>
</head>
<body>

<form class="layui-form layui-form-pane " lay-filter="test2" action="/addmsg" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">公告标题</label>
        <div class="layui-input-block">
            <input type="text" name="title" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">事件类型</label>
        <div class="layui-input-block">
            <select name="msgtype" lay-verify="required">
                <option value=""></option>
                <option value="0">普通事件</option>
                <option value="1">重要事件</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">通知成员</label>
        <div class="layui-input-block">
            <select name="msgmember" lay-verify="required">
                <option value=""></option>
                <option value="0" >部分成员</option>
                <option value="1">全体成员</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">公告主要内容</label>
        <div class="layui-input-block">
            <textarea name="desc" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script src="./layui/layui.js"></script>
<script>
    layui.use(['form'], function(){
        var form = layui.form;
    })


</script>
</body>
</html>